<template>
  <div class="app-container">
    用户登录

    小明完成用户登录布局模块
    <button @click="handleLogin">登录</button>
  </div>
</template>

<script setup lang="ts">
//完成登录交互模块
import{login} from '../../api/user'

const handleLogin=() =>{
  login({
    username:'admin',
    password:'admin'
  }).then(res =>{
    console.log(res)
  })
}

</script>

<style lang="less" scoped>


</style>

